package com.wdl.fmnew;

import android.support.test.runner.AndroidJUnit4;

import com.wdl.fmnew.core.net.bean.ApiCommonResultT;
import com.wdl.fmnew.core.net.utils.NetUtils;

import org.junit.Test;
import org.junit.runner.RunWith;

/**
 * Instrumentation test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        String result="{\"code\":200,\"message\":\"\",\"datas\":[{\"row\":1,\"ID\":53,\"CustomerType\":2,\"ComId\":2,\"EmployeeId\":18,\"CusComName\":\"大华科技\",\"CusComLogo\":\"\",\"HeadImage\":\"http://slx.laodao.so/App/Upload/2017/5/25/1db9cbd5-b9b8-49cd-9f0c-d12c6cb69d2c.jpg\",\"Phone\":\"15221995368\",\"Cflet\":\"L\",\"ContName\":\"刘锣锅\",\"Sex\":\" \",\"Birthday\":null,\"ComDegree\":0,\"OaProvince\":\"浙江省\",\"OaCity\":\"杭州市\",\"OaArea\":\"滨江区\",\"OperateAddress\":\"浙江省杭州市滨江区园区中路6号滨文工贸科技园c栋2楼\",\"Remark\":\"\",\"Integrity\":0,\"IsTagging\":0,\"UpdDate\":\"2017-09-05T11:18:42.713\",\"Age\":0,\"SaleAmonut\":0.00,\"EmpName\":\"徐咏春\",\"LoginNum\":\"13170000000\",\"HeadImages\":\"http://slx.laodao.so/App/Upload/2017/8/3/81f6d04c-2eef-47db-a194-306a8529b621.jpg\",\"Sexs\":\"男\",\"Pname\":\"董事长\",\"DepartName\":\"采购\",\"IsCollt\":1},{\"row\":2,\"ID\":128,\"CustomerType\":2,\"ComId\":2,\"EmployeeId\":18,\"CusComName\":\"昌邑化肥有限责任公司\",\"CusComLogo\":\"http://slx.laodao.so/App/Upload/2017/7/12/d136f21c-4dd9-4713-853b-da1d52a40fde.jpg\",\"HeadImage\":\"http://slx.laodao.so/App/Upload/2017/7/7/963c856a-f77d-4c4e-a72f-792615fe6924.jpg\",\"Phone\":\"15221996333\",\"Cflet\":\"X\",\"ContName\":\"徐咏春\",\"Sex\":\" \",\"Birthday\":null,\"ComDegree\":0,\"OaProvince\":\"山东省\",\"OaCity\":\"潍坊市\",\"OaArea\":\"昌邑市\",\"OperateAddress\":\"山东省潍坊市昌邑市都昌街道都昌路龙鑫花园南450米\",\"Remark\":\"\",\"Integrity\":0,\"IsTagging\":0,\"UpdDate\":\"2017-09-07T17:08:17.963\",\"Age\":0,\"SaleAmonut\":24190.00,\"EmpName\":\"徐咏春\",\"LoginNum\":\"13170000000\",\"HeadImages\":\"http://slx.laodao.so/App/Upload/2017/8/3/81f6d04c-2eef-47db-a194-306a8529b621.jpg\",\"Sexs\":\"男\",\"Pname\":\"董事长\",\"DepartName\":\"采购\",\"IsCollt\":1}]}";

        String result2="{\"code\":200,\"message\":\"\",\"datas\":{\"row\":1,\"ID\":53,\"CustomerType\":2,\"ComId\":2,\"EmployeeId\":18,\"CusComName\":\"大华科技\",\"CusComLogo\":\"\",\"HeadImage\":\"http://slx.laodao.so/App/Upload/2017/5/25/1db9cbd5-b9b8-49cd-9f0c-d12c6cb69d2c.jpg\",\"Phone\":\"15221995368\",\"Cflet\":\"L\",\"ContName\":\"刘锣锅\",\"Sex\":\" \",\"Birthday\":null,\"ComDegree\":0,\"OaProvince\":\"浙江省\",\"OaCity\":\"杭州市\",\"OaArea\":\"滨江区\",\"OperateAddress\":\"浙江省杭州市滨江区园区中路6号滨文工贸科技园c栋2楼\",\"Remark\":\"\",\"Integrity\":0,\"IsTagging\":0,\"UpdDate\":\"2017-09-05T11:18:42.713\",\"Age\":0,\"SaleAmonut\":0.00,\"EmpName\":\"徐咏春\",\"LoginNum\":\"13170000000\",\"HeadImages\":\"http://slx.laodao.so/App/Upload/2017/8/3/81f6d04c-2eef-47db-a194-306a8529b621.jpg\",\"Sexs\":\"男\",\"Pname\":\"董事长\",\"DepartName\":\"采购\",\"IsCollt\":1}}";


        String result3="{\"code\":200,\"message\":\"\",\"datas\":\"123321\"}";

        ApiCommonResultT commonResultT = NetUtils.getCommonResultT(result3, String.class);


        System.out.println("1232321");
    }
}
